package cn.bmbanjia.zebra2024.apps.clewAndroid.clew.controller;

import cn.bmbanjia.zebra2024.apps.base.clew.service.IClewService;
import cn.bmbanjia.zebra2024.apps.base.laddieAppraise.service.ILaddieAppraiseService;
import cn.bmbanjia.zebra2024.apps.clewAndroid.clew.req.OrderDetailsReq;
import cn.bmbanjia.zebra2024.apps.clewAndroid.clew.req.UploadLaddieAppraiseReq;
import cn.bmbanjia.zebra2024.apps.clewAndroid.clew.resp.OrderDetailsResp;
import cn.bmbanjia.zebra2024.frame.resp.Resp;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.validation.Valid;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/clewAndroid/clew")
@Tag(name = "线索")
public class ClewController {

    @Resource
    private IClewService clewService;
    @Resource
    private ILaddieAppraiseService laddieAppraiseService;

    @Operation(summary = "uploadLaddieAppraise")
    @PostMapping("/uploadLaddieAppraise")
    public Resp<Void> uploadLaddieAppraise(@RequestBody @Valid UploadLaddieAppraiseReq req) {
        return laddieAppraiseService.uploadLaddieAppraise(req);
    }

    @Operation(summary = "orderDetails")
    @PostMapping("/orderDetails")
    public Resp<OrderDetailsResp> orderDetails(@RequestBody @Valid OrderDetailsReq req) {
        return clewService.orderDetails(req);
    }

}
